home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / text / misc / cvt / scripts / ascii->trigraph.cvt < prev    next >
Text File  |  1993-12-31  |  716b  |  27 lines

  1. /*
  2.  *  ASCII->TRIGRAPH.CVT
  3.  *
  4.  *  The character set of C source programs is contained within seven-bit
  5.  *  ASCII, but is a superset of the ISO 646-1983 Invariant Code Set.
  6.  *  In order to enable programs to be represented in the reduced set,
  7.  *  all occurrences of the following trigraph sequences are replaced by
  8.  *  the corresponding single character.
  9.  *
  10.  *  Taken from THE C PROGRAMMING LANGUAGE by Brian W. Kernighan and
  11.  *  Dennis M.Ritchie, 2nd Edition  p.229
  12.  *
  13.  *  Implementation as CVT scriptfile by Tobias Ferber 1993.
  14.  */
  15.  
  16.  "#"  -> "??=";
  17.  "\\" -> "??/";
  18.  "^"  -> "??'";
  19.  "["  -> "??(";
  20.  "]"  -> "??)";
  21.  "|"  -> "??!";
  22.  "{"  -> "??<";
  23.  "}"  -> "??>";
  24.  "~"  -> "??-";
  25.  
  26. // No other such replacements occur.
  27.